Security News
JavaScript Leaders Demand Oracle Release the JavaScript Trademark
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
@os-design/theming
Advanced tools
Before you start using the os-design components, you need to add the ThemeProvider that will apply the theme to all the components used.
Before you start using the os-design components, you need to add the ThemeProvider that will apply the theme to all the components used.
Install the package using the following command:
yarn add @os-design/theming
Also make sure that you have the @emotion/react package installed.
Create the emotion.d.ts
file with the following content:
import '@emotion/react';
import { Theme as BaseTheme } from '@os-design/theming';
declare module '@emotion/react' {
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface Theme extends BaseTheme {}
}
ThemeProvider
For example:
import React from 'react';
import { ThemeProvider } from '@os-design/theming';
import AppRouter from './AppRouter';
const App: React.FC = () => (
<ThemeProvider>
<AppRouter />
</ThemeProvider>
);
export default App;
See all theming features in the Storybook.
FAQs
Before you start using the os-design components, you need to add the ThemeProvider that will apply the theme to all the components used.
The npm package @os-design/theming receives a total of 6 weekly downloads. As such, @os-design/theming popularity was classified as not popular.
We found that @os-design/theming demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.